import Vue from 'vue'
import App from './App.vue'
import router from './router'
Vue.config.productionTip = false
import moment from 'moment'


//自加
import store from './store'

import '@/styles/base.less'//先加base样式
import '@/styles/reset.css'
import '@/utils/vant'
//自己写的基础样式
// 导入px转rem
import 'amfe-flexible'

moment.locale('zh-cn')

Vue.filter('relvTime',(val)=>{ 
  return moment(val).fromNow()
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
